package cn.bgs.dao;

import cn.bgs.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentInformationMapper {
    int deleteByPrimaryKey(Integer stuId);

    int insert(StudentInformation record);

    int insertSelective(StudentInformation record);

    StudentInformation selectByPrimaryKey(Integer stuId);

    int updateByPrimaryKeySelective(StudentInformation record);

    int updateByPrimaryKey(StudentInformation record);

    List<StudentInformation> findStudentInformation(@Param("stuName") String stuName, @Param("mobile") String mobile, @Param("sex") String sex, @Param("age") Integer age, @Param("idNum") String idNum,@Param("gradeName")String gradeName);

    Integer studentDelete(Integer stuId);

    StudentInformation updateView(Integer stuId);

    List<Provinces> provinces();

    List<Cities> cities();

    List<Areas> areas();

    Integer deleteList(List<Integer> list);


    List<StudentInformation> findGradeStu(@Param("gradeName") String gradeName);

    Integer insertAdd(StudentInformation studentInformation);

    List<StudentInformation> findDormitoryStu(@Param("dormitoryName") String dormitoryName);

    Integer insertAddStu(StudentInformation studentInformation);

    Integer updatestuName(StudentInformation studentInformation);

    List<Student> findStudent(StudentInformation studentInformation);
}